import { mapGetters } from 'vuex'
export default {
	computed: {
		...mapGetters('cart', ['totalCount'])
	},
	onShow() {
		uni.setTabBarBadge({
			index: 2,
			text: this.totalCount.toString()
		})
	}
}